<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StoreProperty.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Database.StoreProperty" %>
<div>
<table class="content" cellspacing="1" cellpadding="0" width="100%">
    <tr>
        <td class="header2" valign="middle" align="left">
            <asp:HyperLink ID="lnkProcsList" Text="Store Procedure" runat="server"></asp:HyperLink>
            &nbsp;|&nbsp;
            <asp:HyperLink ID="lnkProcRename" Text="Rename" runat="server"></asp:HyperLink>
            &nbsp;|&nbsp;
            <asp:HyperLink ID="lnkProcExec" Text="Execute" runat="server"></asp:HyperLink>
            &nbsp;|&nbsp;
            <asp:HyperLink ID="lnkProcDrop" Text="Drop" runat="server"></asp:HyperLink>
         </td>
    </tr>
</table>
<br />
    <asp:UpdatePanel ID="upanelGridUserManagemt" runat="server" UpdateMode="Conditional"
        RenderMode="Inline">
        <ContentTemplate>
            <table class="content" cellspacing="1" cellpadding="0" width="100%">
            <tr>
                <td class="header1" align="left" style="height: 19px" colspan="2">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">
                    <asp:Label ID="lblError" runat="server" Visible="false" SkinID="error"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postheader" width="25%" align="left">
                    <asp:Label ID="lblProcsDrop" runat="server" Text="Store Procedure"></asp:Label>
                </td>
                <td class="post" width="75%" align="left">
                    <asp:DropDownList ID="dropProcedure" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropProcedure_SelectedIndexChanged">
                        </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">Definition
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldtxtDefinition" runat="server" ControlToValidate="txtDefinition"
                            Display="Dynamic" ErrorMessage="RequiredFieldtxtDefinition" SkinID="error"></asp:RequiredFieldValidator><br />
                        <asp:TextBox ID="txtDefinition" runat="server" Columns="80" Rows="10" TextMode="MultiLine"
                            Wrap="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="postfooter" colspan="2" align="left">
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" Authenticated="UPDATE" CssClass="pbutton" ID="btnUpdateDef" runat="server" OnClick="btnUpdateDef_Click" Text="Update" />&nbsp;<asp:CheckBox
                            ID="checkBackup" runat="server" Checked="True" Text="check Backup" />
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">Privileges
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">
                    <asp:GridView ID="gridUsers" BorderColor="white" runat="server" AutoGenerateColumns="False" OnRowDataBound="gridUsers_OnRowDataBound">
                        <Columns>
                            <asp:BoundField DataField="name" HeaderText="User" />
                            <asp:TemplateField HeaderText="Execute">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkExecute" runat="server" Text="Execute" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="header2" Height="27" />
                        <AlternatingRowStyle CssClass="post" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">
                    <asp:GridView ID="gridRoles" BorderColor="white" runat="server" AutoGenerateColumns="False" OnRowDataBound="gridRoles_OnRowDataBound">
                        <Columns>
                            <asp:BoundField DataField="name" HeaderText="Role" />
                            <asp:TemplateField HeaderText="Execute">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkExecute" runat="server" Text="Execute" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="header2" Height="27" />
                        <AlternatingRowStyle CssClass="post" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="postfooter" colspan="2" align="left">
                    <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" Authenticated="UPDATE" ID="btnGrant" CssClass="pbutton" runat="server" OnClick="btnGrant_Click" Text="Grant" />
                </td>
            </tr>
            </table>             
        </ContentTemplate>
    </asp:UpdatePanel>
</div>